/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.persistencia.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author kenny
 */
@Embeddable
public class DictadoxsalonPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "nDctId")
    private int nDctId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SlnId")
    private int slnId;

    public DictadoxsalonPK() {
    }

    public DictadoxsalonPK(int nDctId, int slnId) {
        this.nDctId = nDctId;
        this.slnId = slnId;
    }

    public int getNDctId() {
        return nDctId;
    }

    public void setNDctId(int nDctId) {
        this.nDctId = nDctId;
    }

    public int getSlnId() {
        return slnId;
    }

    public void setSlnId(int slnId) {
        this.slnId = slnId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) nDctId;
        hash += (int) slnId;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DictadoxsalonPK)) {
            return false;
        }
        DictadoxsalonPK other = (DictadoxsalonPK) object;
        if (this.nDctId != other.nDctId) {
            return false;
        }
        if (this.slnId != other.slnId) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.persistencia.domain.DictadoxsalonPK[ nDctId=" + nDctId + ", slnId=" + slnId + " ]";
    }
    
}
